for i in {1..2}; do
  RAND_NUM=$((1 + RANDOM % 1000))
  RAND_TEXT="产品_$((1 + RANDOM % 100))"
  
  # 随机选择标签组合
  TAG_CHOICE=$((RANDOM % 3))
  case $TAG_CHOICE in
    0) TAGS='["电子", "科技", "新品"]' ;;
    1) TAGS='["家居", "生活"]' ;;
    *) TAGS='["服装", "时尚", "促销", "2023"]' ;;
  esac
  
  # 生成随机数值数组
  VAL1=$((1 + RANDOM % 100))
  VAL2=$((1 + RANDOM % 100))
  VAL3=$((1 + RANDOM % 100))
  VALUES="[$VAL1, $VAL2, $VAL3]"
  
  mysql --connect-timeout 15 -u 'LdC71APSKJWjErP.root' -h gateway01.ap-southeast-1.prod.aws.tidbcloud.com -P 4000 -D github_sample --ssl-mode=VERIFY_IDENTITY --ssl-ca=/etc/ssl/certs/ca-certificates.crt -p -e "
    INSERT INTO test_array_performance (
      numeric_field, 
      text_field, 
      tags, 
      values_array
    ) VALUES (
      $RAND_NUM,
      '$RAND_TEXT',
      '$TAGS',
      '$VALUES'
    );"
done